package com.maschinenstuermer.profiler.trace.provider;

import com.maschinenstuermer.profiler.trace.Invocation;
import com.maschinenstuermer.profiler.trace.Metrics;

public interface IRootInvocation {
	/**
	 * Returns the root invocation.
	 * @return
	 */
	Invocation getRoot();
	
	/**
	 * Returns the time of the given metrics relative to the root invocation.
	 * @param metrics
	 * @return
	 */
	double getRelativeTime(Metrics metrics);
}
